.class Lcom/waiqin365/lightwork/directory/j;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/directory/DirectoryActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/directory/DirectoryActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/j;->a:Lcom/waiqin365/lightwork/directory/DirectoryActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    const/4 v5, 0x1

    const/4 v0, 0x0

    sget-object v1, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->a:Ljava/util/ArrayList;

    if-eqz v1, :cond_2

    sget-object v1, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_2

    sget-object v1, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    if-eqz v1, :cond_2

    sget-object v1, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    sget-object v1, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    sget-object v2, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    move v1, v0

    :goto_0
    sget-object v0, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    sget-object v0, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->d:Ljava/lang/String;

    const-string/jumbo v2, "&&"

    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/j;->a:Lcom/waiqin365/lightwork/directory/DirectoryActivity;

    invoke-static {v2}, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b(Lcom/waiqin365/lightwork/directory/DirectoryActivity;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    :try_start_0
    new-instance v2, Lcom/waiqin365/base/login/d/o;

    const/4 v3, 0x0

    const/16 v4, 0x8

    invoke-virtual {v0, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Lcom/waiqin365/base/login/d/o;-><init>(Ljava/lang/String;)V

    sget-object v0, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->d:Ljava/lang/String;

    const-string/jumbo v3, "&&"

    invoke-virtual {v0, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    sget-object v0, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    const/4 v4, 0x1

    aget-object v3, v3, v4

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/login/d/o;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->d:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    :cond_1
    sput-boolean v5, Lcom/waiqin365/lightwork/directory/DirectoryActivity;->c:Z

    :cond_2
    return-void
.end method
